<?php
class HelloWorld extends CI_Controller {
function __construct()
	{
		parent::__construct();
		$this->load->helper(array('form', 'url'));
		$this->load->library('tank_auth');
		$this->lang->load('tank_auth');
	}
	
	function index() {
		if (!$this->tank_auth->is_logged_in()) {									// logged in
			redirect('/auth/login/');
		}
		$data ['title'] = 'My first application created with Code Igniter';
		$data ['message'] = 'Hello world!';
		// load 'helloworld' view
		$this->load->view ( 'helloworld', $data );
	}
}
?>